<?php
    $table = $this->inflect($this->table)->toTitle();
    $singular = $this->inflect($table)->singularize();
    $this->headTitle($table . ' : Delete');
    $this->headLink()->appendStylesheet($this->asset('css/crud.css'));
    $this->headLink()->appendStylesheet($this->asset('css/crud_ie.css'), null, 'IE');
?>

<?php if (!empty($this->useOwnLayout) || !$this->hasLayout()) echo $this->render('_partials/head.phtml'); ?>

<div id="crud">

<div class="box">
<div class="tabs">
<?php echo $this->nav(array(
    'Tables' => $this->urlTo('crud'),
    'List' => $this->urlTo('crud')->action('list')->table($this->table),
    'New ' . $singular => $this->urlTo('crud')->action('create')->table($this->table),
)); ?>
</div>
<div class="panel">
    <div class="corners-top"><div class="left"></div><div class="right"></div></div>
    <div class="content">

<?php if (!empty($this->messages)) : ?>
<div id="crud-messages">
    <p>
    <?php echo implode("</p>\n<p>", $this->messages); ?>
    </p>
</div>
<?php endif; ?>

<h2>Are you sure you want to delete this <?php echo strtolower($singular); ?>?</h2>

<form action="<?php echo $this->url() ?>" method="post">
<?php foreach ($this->pk as $name=>$value) : ?>
    <input type="hidden" name="<?php echo $name ?>" value="<?php echo $value ?>" />
<?php endforeach ?>
    <ul class="list-form">
<?php     foreach ($this->data as $label=>$value) : ?>
    	<li>
            <span class="label"><?php echo $this->inflect($label)->toPhrase(Crud_View_Helper_Inflect::UC_FIRST) ?></span>
            <div class="value"><?php echo $value ?></div>
    	</li>
<?php     endforeach ?>
        <li class="actions">
            <input type="submit" name="yes" value="Delete" />
            <input type="submit" name="no" value="Cancel" />
        </li>
    </ul>
</form>

<div class="cleared"></div>

    </div>
    <div class="corners-bottom"><div class="left"></div><div class="right"></div></div>
</div>

</div>

</div>

<!-- crud/index/delete: $Id: delete.phtml 54 2009-12-20 03:00:49Z monzee@gmail.com $ -->

<?php if (!empty($this->useOwnLayout) || !$this->hasLayout()) echo $this->render('_partials/foot.phtml'); ?>